﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace KIS公有云测试.Tools
{
    public class RandomTool
    {
        public string GenerateRandom()
        {
            const string chars = "0123456789abcdefghijklmnopqrstuvwxyz"; // 62个字符[3,7](@ref)
            StringBuilder sb = new StringBuilder(16);
            Random rand = new Random();

            for (int i = 0; i < 16; i++)
            {
                sb.Append(chars[rand.Next(chars.Length)]);
            }
            return sb.ToString();
        }
    }
}